package subject

import "vrcm/src/vrcm/common/models"

type SubjectOption struct {
	models.Model

	SubjectId     int    `json:"subject_id" gorm:"type:bigint unsigned;comment:题目id"`
	OptionImage   string `json:"option_image" gorm:"type:varchar(100);comment:选项图片" validate:"required,max=300"`
	OptionContent string `json:"option_content" gorm:"type:varchar(200);comment:选项内容" validate:"required,max=200"`
	OptionType    int    `json:"option_type" gorm:"type:tinyint;comment:选项类型 1不含图片 2含图片" validate:"required,gt=0,lte=2"`
	Sort          int    `json:"sort" gorm:"type:tinyint;comment:选项排序" validate:"required"`
	IsDelete      int    `json:"is_delete" gorm:"type:tinyint;comment:是否删除 1删除 2未删除"`
	models.ModelTime
	models.ControlBy
}

type SubjectOptionMap struct {
	SubjectId int `json:"subject_id" gorm:"type:bigint unsigned;comment:题目id"`
	Num       int `json:"num" `
}
